<?php
function createCleanArray($objectArray) {

	$cherenPetar = findCherenPetar($objectArray);
	foreach($objectArray as $object){
		if($object == $cherenPetar){
			unset($object);
		}
	}
  return $oblectArray;
}

?>